<?php
namespace Pw\MainBundle\Classes;
class IconTag extends Tag
{
	private $baseUrl;
	public function __construct($baseUrl){
		parent::__construct('icon', null, null, false, array('_self' => array('ad', 'ap')));
		$this->baseUrl = $baseUrl;
	}
	public function getRepalceOpen() {
		$res = '';
		//var_dump($this->params['_self']);
		if (isset($this->params['_self'])) {
			$res .= '<img class="iconMicro" src="' . $this->baseUrl . '/images/' . $this->params['_self'] . '" />';
		}
		return $res;
	}
}
